import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import FastClick from 'fastclick'
import VueLazyLoad from 'vue-lazyload'

import toast from 'components/common/toast'

Vue.config.productionTip = false;
Vue.prototype.$bus = new Vue(); // 事件总线

Vue.use(toast); // 安装toast插件

// 解决客户端300ms延时
FastClick.attach(document.body);
// 使用VueLazyLoad插件
Vue.use(VueLazyLoad, {
  loading: require('./assets/img/common/placeholder.jpeg')
});

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
